<div class="content-section introduction">
    <div class="feature-intro">
        <h1>Display</h1>
        <p>Efficiently configure the display of the component with <a href="https://github.com/primefaces/primeflex">PrimeFlex</a> display utilities.</p>
    </div>
</div>

<div class="content-section implementation">
    <div class="card">
        <h5>Inline</h5>
        <input type="text" pInputText class="p-mr-2 p-d-inline" />
        <input type="text" pInputText class="p-d-inline" />

        <h5>Block</h5>
        <input type="text" pInputText class="p-mb-2 p-d-block" />
        <input type="text" pInputText class="p-d-block" />

        <h5>Visible on a Small Screen</h5>
        <p>Resize to view.</p>
        <p-button type="button" icon="pi pi-bars" styleClass="p-button-rounded p-d-md-none"></p-button>

        <h5>Hidden on a Small Screen</h5>
        <p>Resize to hide.</p>
        <p-button type="button" icon="pi pi-search" styleClass="p-button-rounded p-button-success p-d-none p-d-md-inline-flex"></p-button>

        <h5>Visible to Print, Invisible for Screen</h5>
        <p class="p-d-none p-print-block">Only visible when printed.</p>

        <h5>Visible to Screen, Invisible for Print</h5>
        <p class="p-d-block p-print-none">Not available for printing.</p>
    </div>
</div>

<div class="content-section documentation">
    <p-tabView>
        <p-tabPanel header="Documentation">
            <h5>Getting Started</h5>
            <p>The display classes use the <i>p-d-&#123;value&#125;</i> format and <i>p-d-&#123;breakpoint&#125;-&#123;value&#125;</i> format for responsive design.</p>

            <h5>Values</h5>
            <p>Value field can be one of the following options.</p>
            <ul>
                <li>none</li>
                <li>inline</li>
                <li>inline-block</li>
                <li>block</li>
                <li>flex</li>
                <li>inline-flex</li>
            </ul>

            <h5>Breakpoint</h5>
            <p>Breakpoints define how the display property should be defined depending on the screen size. Design is mobile first so smaller values
                can also apply to larger values e.g. md also applies to lg or xl if they are not explicitly defined.</p>
            <ul>
                <li><b>sm</b>: small screens e.g. phones</li>
                <li><b>md</b>: medium screens e.g. tablets</li>
                <li><b>lg</b>: large screens e.g. notebooks</li>
                <li><b>xl</b>: larger screens .e.g monitors</li>
            </ul>

            <h5>Examples</h5>
<app-code lang="markup" ngNonBindable ngPreserveWhitespaces>
&lt;div class="p-d-inline"&gt;Displayed as inline.&lt;/div&gt;
&lt;div class="p-d-flex"&gt;Displayed as a flexbox container.&lt;/div&gt;
&lt;div class="p-d-block p-d-lg-inline"&gt;Inline for larger screens and block for others.&lt;/div&gt;
&lt;div class="p-d-md-none"&gt;Visible on a Small Screen&lt;/div&gt;
&lt;div class="p-d-none p-d-md-inline-flex"&gt;Hidden on a Small Screen&lt;/div&gt;
&lt;div class="p-d-none p-print-block"&gt;Only visible when printed.&lt;/div&gt;
&lt;div class="p-d-block p-print-none"&gt;Not available for printing.&lt;/div&gt;
</app-code>

            <h5>Customization</h5>
            <p>A custom build with different values can be obtained from <a href="https://github.com/primefaces/primeflex">PrimeFlex</a> using the _variables.scss file.</p>
        </p-tabPanel>

        <p-tabPanel header="Source">
            <a href="https://github.com/primefaces/primeng/tree/master/src/app/showcase/components/primeflex/" class="btn-viewsource" target="_blank">
                <span>View on GitHub</span>
            </a>
            <a href="https://stackblitz.com/edit/primeng-primeflex-display-demo" class="btn-viewsource" style="margin-left: .5em;" target="_blank">
                <span>Edit in StackBlitz</span>
            </a>
<app-code lang="markup" ngNonBindable ngPreserveWhitespaces>
&lt;h5&gt;Inline&lt;/h5&gt;
&lt;input type="text" pInputText class="p-mr-2 p-d-inline" /&gt;
&lt;input type="text" pInputText class="p-d-inline" /&gt;

&lt;h5&gt;Block&lt;/h5&gt;
&lt;input type="text" pInputText class="p-mb-2 p-d-block" /&gt;
&lt;input type="text" pInputText class="p-d-block" /&gt;

&lt;h5&gt;Visible on a Small Screen&lt;/h5&gt;
&lt;p&gt;Resize to view.&lt;/p&gt;
&lt;p-button type="button" icon="pi pi-bars" styleClass="p-button-rounded p-d-md-none"&gt;&lt;/p-button&gt;

&lt;h5&gt;Hidden on a Small Screen&lt;/h5&gt;
&lt;p&gt;Resize to hide.&lt;/p&gt;
&lt;p-button type="button" icon="pi pi-search" styleClass="p-button-rounded p-button-success p-d-none p-d-md-inline-flex"&gt;&lt;/p-button&gt;

&lt;h5&gt;Visible to Print, Invisible for Screen&lt;/h5&gt;
&lt;p class="p-d-none p-print-block"&gt;Only visible when printed.&lt;/p&gt;

&lt;h5&gt;Visible to Screen, Invisible for Print&lt;/h5&gt;
&lt;p class="p-d-block p-print-none"&gt;Not available for printing.&lt;/p&gt;
</app-code>
        </p-tabPanel>
    </p-tabView>
</div>